From: Christoph Egger Date: Mon, 22 Aug 2011 13:37:29 +0000 (+0100) Subject: nested-p2m: suppress np2m flushes during p2m setup X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~9948 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=e7fc68d87470c10fd27228a68c03418fa75c05f3;p=xen.git nested-p2m: suppress np2m flushes during p2m setup There is no need to send IPIs within p2m_alloc_table() via set_p2m_entry(). Signed-off-by: Christoph Egger Committed-by: Tim Deegan --- diff --git a/xen/arch/x86/mm/p2m.c b/xen/arch/x86/mm/p2m.c index 26e53e74b1..3ae5a49752 100644 --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -245,6 +245,7 @@ int p2m_alloc_table(struct p2m_domain *p2m) P2M_PRINTK("populating p2m table\n"); /* Initialise physmap tables for slot zero. Other code assumes this. */ + p2m->defer_nested_flush = 1; if ( !set_p2m_entry(p2m, 0, _mfn(INVALID_MFN), 0, p2m_invalid, p2m->default_access) ) goto error; @@ -272,6 +273,7 @@ int p2m_alloc_table(struct p2m_domain *p2m) } spin_unlock(&p2m->domain->page_alloc_lock); } + p2m->defer_nested_flush = 0; P2M_PRINTK("p2m table initialised (%u pages)\n", page_count); p2m_unlock(p2m);